1, Introduction to basic knowledge
1. 1 each host or router in the network has at least one IP address;
Two devices are not allowed to have the same IP address on the Internet;
1. 2IP address using a layered structure;
The IP address consists of a network number (NET ID) and a host number (host ID).
1. 3 Classification of I
The method of dividing subnets is to borrow several bits from the host number of the network as the subnet number, and the host number correspondingly reduces the same number of bits. Before subnetting, the IP address is a level two structure: network number, host number.After dividing the subnet, level two IP address becomes level three
(' 8.8.8.8 '). Iptype ()' Public '
Then write a script that returns various results based on the IP address entered:[[emailprotected] python]# cat ip_test.py #!/usr/bin/python#-*- coding:utf-8 -*-from IPy import IPip_input = raw_input("请输入一个ip地址或者地址段: ")ips = IP(ip_input)if int(len(ips)) > 1 : ##判断IP地址个数,大于1代表输
introduction: Class D addresses are called broadcast addresses and are used by special protocols to send information to selected nodes. Class E addresses are reserved for future use.The definition of Netmark is very simple, netmask is also 32 bits, in numerical value, is located in the Net-id of 1 and Host-id is 0For example, a common class C IP addressNet-id=24 bit, host-id=8 bit, with 2**8-2=254 IPA traditional Class C network, such as 192.168.10.0
Recently, it has been found that some local telecom companies provide users with a public IP address, and then several subnets. Some people do not know what the problem is?
I do not know how to set it? I will tell you this now!
For example, public IP Address Assigned by China Telecom: 125.92.233.48/255.255.255.252
China Telecom subnet Gateway: 61.146.93.32/255
数 yh_dl () #执行用户代理池函数 data = Urllib.request.urlopen (hq_url ). Read (). Decode ("Utf-8") return data except Urllib.error.URLError as E: # If an error occurs if Hasattr (E, "code"): # If there is an error code # print (e.code) # Printing error code pass if Hasattr (E, "Reason"): # If there is an error message # PR int (e.reason) # Print error message pass# a = hq_html (' http://www.baid.com/') # print (a)Module use#!/usr/bin/env python#-*-coding:utf-8-*-import urllib.requestimport FZHPACHGJC = '
I explained the second-level domain name on the IP address. when the second-level domain name does not allow him to access the address book of the main site, the second-level domain name is edited by liaohongchu from 2012-11-2116:42:50; tm.xinqq163.com nbsp; this is also explained on the IP address nbsp; tm. xinqq I
I explained the second-level domain name on the IP address. when the second-level domain name does not allow him to access the address book of the main site, the second-level domain name is edited by liaohongchu from 2012-11-2116:42:50; tm.xinqq163.com nbsp; this is also explained on the IP address nbsp; tm. I interp
Http://www.cnblogs.com/chengmo/archive/2013/05/29/php.html (please refer to this blog post for details)1. ' REMOTE_ADDR ' is the remote IP, the default from the TCP connection is the IP of the client. It is the most accurate, but only gets the direct connection to the server client IP.If the other side through the proxy server online, it is found. Get to the proxy server IP.such as: A->b (proxy)->c, if C th
I explained the level two domain name on the IP, when the level two domain name did not let him visit the main station address
This post was last edited by Liaohongchu on 2012-11-21 16:42:50
Like the main station www.xinqq163.com/index.html. I made a level two domain name tm.xinqq163.com also explained on the IP In thi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.